/*!
 * @file  MyModbusCRC.h
 * @brief used for modbus crc verification
 * @author xyxedu
 * @date 2014-4-12
 * @version 1.0.0
 */

#ifndef MYMODBUSCRC_H
#define MYMODBUSCRC_H
#include <Arduino.h>
#include <vector>
using namespace std;
class MyModbusCRC {
public:
    MyModbusCRC();
    static uint16_t calculate(uint8_t *data, uint8_t len);
    static uint16_t calculate(const std::vector<uint8_t> &data);
};

#endif //MYMODBUSCRC_H
